package com.seed.core.pojo;

public class Const {
    public static final String ID = "id";
    public static final String VERSION = "version";
    public static final String PASSWORD = "password";
    public static final String SALT = "salt";
    public static final String INIT_PASSWORD_VALUE = "123456";

    public static final char CODE_SEPARATOR = '.';
    public static final String CODE = "code";
    public static final String HAS_ONE_CODE_CONDITION = "`self`.`code` = SUBSTR(`target`.code`, 1, LENGTH(`target`.`code`) - LENGTH(SUBSTRING_INDEX(REVERSE(`target`.`code`),'.',1)) - 1)";
    public static final String BELONGS_TO_CODE_CONDITION = "SUBSTR(`self.code`, 1, LENGTH(`self.code`) - LENGTH(SUBSTRING_INDEX(REVERSE(`self.code`),'.',1)) - 1) = `target.code`";
    public static final String MAIN_TABLE_ALIAS = "t";

    public static final String COLON = ":";
    public static final String ADMIN = "admin";
    public static final String SUBJECT = "subject";
    public static final String SWITCH_TO = "switch";
}
